<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>成绩信息管理</title>

    <link rel="stylesheet" href="/component/layui/css/layui.css">
    <link rel="stylesheet" href="/css/teachers.css">
</head>
<body>

<div class="container">

    <div class="layui-row">

        <div class="layui-col-xs12">
            <h1 style="text-align: center">成绩信息管理</h1>
        </div>


    </div>

    <div class="layui-row">

        <div class="layui-col-xs12 toolbar">
            <div class="layui-row">
                <button type="button" class="layui-btn layui-btn-sm layui-btn-normal"
                        onclick="showScoreDlg();return false;">

                    <i class="layui-icon layui-icon-addition"></i>
                </button>

                <button type="button" class="layui-btn layui-btn-sm layui-btn-normal layui-bg-red"
                        onclick="deleteConfirm();" style="float:right;">
                    <i class="layui-icon layui-icon-delete"></i>
                </button>
            </div>

            <div class="queryBox">
                <form action="" class="layui-form" id="queryForm">
                    <ul class="query-inline">
                        <li class="layui-input-group">
                            <div class="layui-input-prefix">
                                学生姓名
                            </div>
                            <input type="text" placeholder="学生姓名" class="layui-input" name="sname">
                        </li>

                        <li class="layui-input-group">
                            <div class="layui-input-prefix">
                                课程名
                            </div>
                            <input type="text" placeholder="课程名" class="layui-input" name="cname">
                        </li>
                        <li class="layui-input-group">
                            <div class="layui-input-prefix">
                                成绩
                            </div>
                        <input type="text" placeholder="成绩" class="layui-input" name="sco">
                        </li>


                        <li class="layui-input-group">
                            <button type="button" class="layui-btn layui-btn-normal"
                                    onclick="search();return false;" style="margin-left: 20px;">查询
                            </button>
                        </li>
                    </ul>

                </form>
            </div>
        </div>


    </div>

    <div class="layui-row">
        <div class="layui-col-xs12">
            <table class="layui-hide" id="tbScore" lay-filter="tbScore"></table>


        </div>
    </div>

</div>

<script type="text/html" id="editTemplate">
    <div class="layui-clear-space">
        <a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a>
    </div>
</script>

<div id="popDlg" style="display: none;">
    <form class="layui-form dlgcontainer" id="scoreForm" >
        <div class="demo-reg-container">
            <div class="layui-form-item" id="formId">
                <div class="layui-row">
                    <div class="layui-col-xs12">
                        <div class="layui-input-wrap">
                            <div class="layui-input-prefix">
                                <i class="layui-icon layui-icon-cellphone"></i>
                            </div>
                            <input type="text" name="id" value="" placeholder="id" lay-reqtext="请填写id"
                                   autocomplete="off" class="layui-input" id="id">
                        </div>
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-input-wrap">
                    <div class="layui-input-prefix">
                        <i class="layui-icon layui-icon-username"></i>
                    </div>
                    <input type="text" name="sname" value="" lay-verify="require" placeholder="学生姓名" lay-reqtext="请填写学生姓名"
                           autocomplete="off" class="layui-input" id="sname">
                </div>
            </div>

            <div class="layui-form-item">
                <div class="layui-input-wrap">
                    <div class="layui-input-prefix">
                        <i class="layui-icon layui-icon-username"></i>
                    </div>
                    <input type="text" name="cname" value=""
                           placeholder="课程名" lay-reqtext="请填写课程名"
                           autocomplete="off" class="layui-input" id="cname">
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-input-wrap">
                    <div class="layui-input-prefix">
                        <i class="layui-icon layui-icon-vercode"></i>
                    </div>
                    <input type="number" name="sco" value="" lay-verify="require" placeholder="成绩" lay-reqtext="请填写成绩"
                           autocomplete="off" class="layui-input" id="sco">
                </div>
            </div>

            <div class="layui-form-item">
                <button class="layui-btn layui-btn-fluid" lay-submit lay-filter="score-dlg" id="btnOk">确定</button>
            </div>

        </div>
    </form>

</div>

<script src="/component/layui/layui.js"></script>
<script src="/pagejs/score.js"></script>


</body>
</html>